<?php

namespace common\models\mall\special;

use Yii;
use common\models\BaseModel;

/**
 * 专题
 */
class MallSpecialModel extends BaseModel
{
    
    /** @var int 绑定状态: 启用 */
    const STATE_ENABLE = 1;
    /** @var int 绑定状态: 禁用 */
    const STATE_DISABLE = 2;

    public static $state = [
        self::STATE_ENABLE => '启用',
        self::STATE_DISABLE => '禁用',
    ];

    /** @var int 首页专题: 是 */
    const IS_HOME_YES = 1;
    /** @var int 首页专题: 否 */
    const IS_HOME_NO = 2;
    public static $is_home = [
        self::IS_HOME_YES => '是',
        self::IS_HOME_NO => '否'
    ];


    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%mall_special}}';
    }
}
